<?php

?>

<?=Yii::$app->view->renderFile('@app/modules/admin/views/common/tab_permissions.php', ['tab' => 'create'])?>
<div class="ui equal width grid">
  <div class="column">
    <div class="panel">
      <div class="panel-alone-content">
        <form class="ui form">
          <div class="field">
            <label>管理员名称:</label>
            <input type="text" name="admin_name" placeholder="不能少于3个字" value="<?=isset($info['admin_name']) ? $info['admin_name'] : ''?>">
          </div>
          <div class="field">
            <label>管理员密码:</label>
            <input type="password" name="admin_pwd" placeholder="不能少于6位" value="<?=isset($info['admin_pwd']) ? $info['admin_pwd'] : ''?>">
          </div>


          <input type="hidden" name="_csrf" id='csrf' value="<?=Yii::$app->request->csrfToken?>">
          <input type="hidden" name="admin_id" value="<?=isset($info['id']) ? $info['id'] : ''?>">
          <button class="ui green basic button create_mediation " type="button">提交</button>
        </form>
      </div>
    </div>
  </div>
</div>
<script type="text/javascript">
  require(['modules/permissions/create_mediation'], function(create_mediation) {
    create_mediation.create()
  })
</script>